package rai.service.transport;

import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.net.ServerSocket;
import java.net.Socket;

public class Serveur {

	private int port = 1110;
	private ServerSocket ecoute;

	public Serveur() throws IOException {
		ecoute = new ServerSocket(port);
	}
	
	public RaiSocket accept() throws IOException{
		return new RaiSocket(ecoute.accept());
	}
}
